package com.yuaihen.databinding;

import android.databinding.BindingAdapter;
import android.util.Log;
import android.widget.TextView;

/**
 * Created by Yuaihen.
 * on 2018/12/13
 * 自定义属性
 */
public class ToastPresenter {
    private static final String TAG = "ToastPresenter";

    @BindingAdapter({"toastMsg"})
    public static void showToast(TextView textView, String s) {
        Log.d(TAG, "show: " + s);
    }

}
